From: | David McMinn |
Date: | 20 Sep 99 at 18:28:41 |
Subject: | Re: (on topic) preventing window movements |
> > Does anybody know a way to temporarily immobilize a window?
> >
> > I've tried RTlockWindow, but the window can still be dragged &
> > re-sized.
> >
> > I also looked for an OS routine to do this, but no luck. Is there a
> > way?
> >
>
> I haven`t tried this myself, but can`t you alter the IDCMP settings
> temporarily so that WindowDrag is excluded? I`m sure you can do it in
> C.
Well, you could use ModifyIDCMP_ for that, but that might just stop
your program from hearing about whether the window was moved etc.
You could also try changing the window flags but that might be a bit
hacky.
Or you could try removing the gadget list (using OS functions) cos
that might take away the window gadgets too. Use RemoveGList_ to
detach from the window then AddGList_ to put it back.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie